package com.woniuxy.xiangruicommonutilserver.dao;

import com.woniuxy.xiangruicommonutilserver.bean.WorkDayInnerBean;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface WorkInfoDao {
    @Insert(" <script> insert into  workday_info (workday,is_worked) values " +
            "  <foreach collection='workDayList' item='workInfo'  index= 'index' separator =','>" +
            "   ( #{workInfo.date},#{workInfo.workday})" +
            "    </foreach></script>")
    int insertWorkDayInfo (@Param("workDayList") List<WorkDayInnerBean> workDayList);

    @Delete("delete from workday_info ")
    int deleteInfo ();
}
